#pragma once
#include <d3d9.h>
#include <d3dx9.h>
class Texture {
private:
	D3DXVECTOR3 *pCenter;
public:
    int Width;								// Sprite width
	int Height;							// Sprite height
	int Count;								// Number of sprites
	int PerRow;
	int PerHeight;
					// Number of sprites per row

	LPDIRECT3DTEXTURE9 Image;
	D3DXIMAGE_INFO Info;

	Texture(int, int, int, int);
	void destroy(void);
	static Texture* createTextureFromFilePath(LPDIRECT3DDEVICE9 d3ddv, LPWSTR, int, int, int, int);
	
	D3DXVECTOR3 *getPosCenter(double, double);
};